package cn.cai.pethome.pet.domain;


import cn.cai.pethome.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaocai
 * @since 2022-09-10
 */
@Data
public class PetType extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;
    private PetType parent;


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();

}
